package Thread;

import java.util.Scanner;

public class Demo32 {
    public static void main(String[] args) {
        Thread t1 = new Thread(() -> {
            int count = 0;
            while(true){
                count++;
            }
        });
        t1.start();

        Thread t2 = new Thread(() -> {
//            Scanner scanner = new Scanner(System.in);
//            int value = scanner.nextInt();
//            System.out.println("value = "+ value);
            while(true){
                System.out.println("hello");
                try {
                    Thread.sleep(1000);
                } catch (InterruptedException e) {
                    throw new RuntimeException(e);
                }
            }
        });
        
    }
}
